<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<script type="text/javascript">
    function f1(){
        var week="Sunday";
        function f2(){
            console.log('星期:'+week);
        }
        return f2;
    }
    var ff=f1();
    console.log(ff());
</script>
</body>
</html>